package com.ftg.learn.day10.pattern.adapter;

/**
 * @author 布衣
 */
public class MediaAdapter {

    private AdvancePlayer advancePlayer;

    public MediaAdapter(){

    }

    public void play(String fileName){
        String postfix = fileName.substring(fileName.lastIndexOf(".") + 1);
        AdvancePlayerFactory.getPlayer(fileName).play(fileName);
    }

}
